package com.topdt.jbpm.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**  
 *  @Project       : thx-workflow
 *  @Program Name  : com.topdt.jbpm.model.Signature.java
 *  @Class Name    : Signature
 *  @Description   : 公文签章
 *  @Author        : calonlan
 *  @Creation Date : 2015年4月13日 上午10:34:41 
 *  @ModificationHistory  
 *  Who        When          What 
 *  --------   ----------    -----------------------------------
 *  username   2015年4月13日       TODO
 */
@Entity
@Table(name = "Arc_Signature")
public class Signature extends JbpmModel{

	
	/**
	 * serialVersionUID : TODO（用一句话描述这个变量表示什么）
	 * @since   : v1.00
	 */
	private static final long serialVersionUID = 1453869722536992088L;
	
	@Id
	@GenericGenerator(name = "idGenerator", strategy = "increment")
	@GeneratedValue(generator = "idGenerator")	
	@Column(name="SignatureID")
	private Integer signatureId;
	
	@Column(name="markname")
	private String name;
	
	@Column(name="marktype")
	private String type;
	
	@Lob
	@Column(name="markbody")
	private byte[] body;
	
	@Column(name="markpath")
	private String path;
	
	@Column(name="marksize")
	private int size;
	
	@Column(name="markdate")
	private Timestamp date;
	
	@Column(name="username")
	private String username;
	
	@Column(name="password")
	private String password;
	

	public Integer getSignatureId() {
		return signatureId;
	}

	public void setSignatureId(Integer signatureId) {
		this.signatureId = signatureId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public byte[] getBody() {
		return body;
	}

	public void setBody(byte[] body) {
		this.body = body;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public Timestamp getDate() {
		return date;
	}

	public void setDate(Timestamp date) {
		this.date = date;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
}
